home *** CD-ROM | disk | FTP | other *** search
- Path: doc.ic.ac.uk!not-for-mail
- From: mdf@doc.ic.ac.uk (Martin Frost)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: resourcetracking/Kill on A4000
- Date: 26 Jan 1996 14:01:51 -0000
- Organization: Dept. of Computing, Imperial College, University of London, UK.
- Distribution: world
- Message-ID: <4eamsf$h5t@oak70.doc.ic.ac.uk>
- References: <4e0554$hro@merkurius.lu.se> <4e2cqe$1i2j@rs18.hrz.th-darmstadt.de>
- Reply-To: mdf@doc.ic.ac.uk (Martin Frost)
- NNTP-Posting-Host: oak70.doc.ic.ac.uk
- X-Newsreader: mxrn 6.18-23
-
-
- In article <4e2cqe$1i2j@rs18.hrz.th-darmstadt.de>, meixner@rbg.informatik.th-darmstadt.de (Matthias Meixner) writes:
- >Resource-tracking is not possible with the current version
- >of the OS. The problem is resource trading:
-
- >task "a" allocatest memory and sends it to task "b"
- >task "b" can now do with it what it wants.
- >If you had resourcetracking, the memory would be
- >freed if task "a" terminates and whereas task "b"
- >would still use it, which is a good way to bring a
- >system down.
-
- But how about a patch that would just keep track of resources and put up a
- warning when an allocation was not freed or whatever. Freeing other programs'
- memory is a bad thing, as pointed out above. If there was an option with the
- program to tell it that certain programs are allowed to leave certain blocks
- of memory free (eg a program which installs a patch on a library, or programs
- which detach themselves from the CLI) then the warnings would only appear for
- programs which actually have bugs in. This program would also be able to check
- for free-twice errors, which are more serious than simply leaving something
- unfreed. I suppose that the error requester saying that a program had quit
- leaving unfreed memory could offer the option to free it anyway, in the case
- of programs which are unlikely to leave patches, and are simply buggy.
-
- I might write such a program, when (if :-) I finish my current project.
-
- Martin
-